package com.cheer.dto;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.PositiveOrZero;

/**
 * @author cheer
 */
@Data
@Accessors(chain = true)
public class MatchResultDTO {

    @NotNull(message = "matchId must not be null")
    private Long matchId;

    @NotNull(message = "isWin must not be null")
    private Boolean isWin;

    @NotNull(message = "correctNumber must not be null")
    @PositiveOrZero(message = "correctNumber must be positive or zero")
    private Integer correctNumber;

    @NotNull(message = "points must not be null")
    @PositiveOrZero(message = "points must be positive or zero")
    private Integer points;

}
